package com.rd.student.wulian.wanggaobo.day0803;

public class Lady {
    private String name;
    private Animal pet;

    public Lady(String name, Animal pet) {
        this.name = name;
        this.pet = pet;
    }

    public void myPetEnjoy() {
        System.out.println(name + "的宠物很高兴，");
        pet.enjoy();
    }
}
